package com.sinothk.special.buyer.userblog.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.sinothk.special.buyer.userblog.entity.UserBlog;
import com.sinothk.special.buyer.userblog.entity.UserBlogDTO;
import com.sinothk.special.buyer.userblog.entity.UserBlogSearchVO;

/**
 * @Description: 个人博客
 * @Author: Liangyt
 * @Date:   2022-03-30
 * @Version: V1.0
 */
public interface UserBlogMapper extends BaseMapper<UserBlog> {

    IPage<UserBlogDTO> listBlogsForUser(Page<UserBlogDTO> page, UserBlogSearchVO searchVO);

    IPage<UserBlogDTO> listForNearbyAndHotBlogs(Page<UserBlogDTO> page, UserBlogSearchVO searchVO);

    IPage<UserBlogDTO> listBlogsForILike(Page<UserBlogDTO> page, UserBlogSearchVO searchVO);
}
